import java.util.Scanner;

public class TestFive {
    public static void main(String[] args) {

        //三目运算符  条件 ？ 表达一 ：表达二
         /*if(5>3){
             System.out.println("大于等于");
         }else{
             System.out.println("小于");
         }*/
        //int numTest =  1>3?10:20;

        //System.out.println("num=="+numTest);

        //153   1*1*1 5*5*5 3*3*3
        //  水仙花数：  1 +125 +27 =153
        System.out.println("请输入一个三位数：");
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt(); //153
        //拆分数据
        //佰
        int best = num/100;
        //十
        int ten = (num-best*100)/10;
        //个
        int theNumber = num-(best*100)-(ten*10);

        //System.out.println(best+"  "+ten+" "+theNumber);
      int sumNum = (int) (Math.pow(best,3)+Math.pow(ten,3)+Math.pow(theNumber,3));
//         if(sumNum==num){
//             System.out.println("是水仙花数");
//         }else{
//             System.out.println("不是水仙花数");
//         }





    }
}
